package chapter04.demo03;

/**
 * 抽象
 */
//123

 abstract class Hero{ //加abstract变抽像类
     abstract  public void skill_1();
    abstract public void skill_2();
    abstract public void skill_3();
    abstract public void skill_4();
    abstract public void passive();
      }
      class Warrior extends Hero{
      public void skill_1(){
         System.out.println("技能一");
     }
         public void skill_2(){
              System.out.println("技能二");
          }
         public   void skill_3(){
              System.out.println("技能三");
          }
         public   void skill_4(){
              System.out.println("技能四");
          }
          public void passive(){
              System.out.println("被动");
          }
      }
      //2.抽象类可以继承抽象类
abstract class Archer extends Hero{

      }
public class Demo03 {
}
